package com.wondertek.poms.core.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "sso", url = "${sso.ssoServer.innerUrlPath}")
@Component
public interface SSOFeignClient {

    @PutMapping("/api/getUserIdByGroupId")
    String getUserIdByGroupId(@RequestParam Long groupId, @RequestParam String accessToken);

    @GetMapping("/user/getGroupInfoByUser")
    String getGroupInfoByUser(@RequestParam String accessToken);

}
